<include file="Public:header"/>
<a href="{:U('Node/add/pid')}/{$pNode.id}">添加 - {$pNode.name} - 下属节点</a>
<if condition="$pNode['pid'] neq 0">
    <a href="{:U('Node/nodes/pid')}/{$pNode.pid}">返回</a>
    <else/>
    <a href="{:U('Rbac/node')}">返回</a>
</if>
<table>
    <tr>
        <td>标识</td>
        <td>名称</td>
        <td>标题</td>
        <td>状态</td>
        <td>URL</td>
        <td>导航</td>
        <td>父类</td>
        <td>等级</td>
        <td>操作</td>
    </tr>
    <foreach name="nodes" item="node">
        <tr>
            <td>{$node.id}</td>
            <td>{$node.name}</td>
            <td>{$node.title}</td>
            <td>{$node.status}</td>
            <td>{$node.url}</td>
            <td>{$node.is_nav}</td>
            <td>{$node.pid}</td>
            <td>{$node.level}</td>
            <td>
                <if condition="$node['level'] lt 3">
                    <a href="{:U('Node/nodes/pid')}/{$node.id}">查看</a>
                </if>
                <a href="">
                    <a href="{:U('Node/edit/id')}/{$node.id}">修改</a>
                </a>
            </td>
        </tr>
    </foreach>
</table>
<include file="Public:footer"/>